# Contributor: Jaroslav Lichtblau <tu@dragonlord.cz>
# Contributor: Francesco Piccinno <stack.box@gmail.com>

pkgname=magicrescue
pkgver=1.1.5
pkgrel=5
pkgdesc="Find and recover deleted files on block devices."
arch=('i686' 'x86_64')
url="http://freshmeat.net/projects/magicrescue/"
groups=('archpwn' 'archpwn-forensic')
license=('GPL')
source=(http://dist.momonga-linux.org/pub/momonga/development/SOURCES/$pkgname-$pkgver.tar.gz)
md5sums=('3284222acc05f5ef6b6771b9df0990c9')

build() {
  cd "${srcdir}/$pkgname-$pkgver"
  install -d "${pkgdir}/usr" || return 1

  ./configure --prefix=/usr
  make PREFIX="${pkgdir}/usr" || return 1

  sed -i 's|$(PREFIX)/man/man1|$(PREFIX)/share/man/man1|' Makefile || return 1
  make PREFIX="${pkgdir}/usr" install
}
